<% content_for :title do %>Add a new user<% end %>
<h1>Add a new user</h1>

<% if @user %>
	<% if @user.errors.any? %>
		<div id="error_explanation">
			<h2><%= pluralize(@user.errors.count, "error") %> prohibited this user from being added:</h2>

			<ul>
			<% @user.errors.full_messages.each do |msg| %>
				<li><%= msg %></li>
			<% end %>
			</ul>
		</div>
	<% end %>
<% end %>


<form action="/users" method="post">
	<input name="authenticity_token" value="<%= form_authenticity_token %>" type="hidden">
	<input type="text" name="user[first_name]" placeholder="First Name" />
	<input type="text" name="user[last_name]" placeholder="Last Name" />
	<input type="text" name="user[email_address]" placeholder="Email Address" />
	<input type="password" name="user[password]" placeholder="Password"/>
	<input type="password" name="user[password_confirmation]" placeholder="Confirm Password"/>
	<input type="submit" value="Add New User" />
</form>